package com.youkeyi.ddy.cloud.common.api.application.business.crm.doctor;

import com.youkeyi.ddy.cloud.common.api.application.business.crm.doctor.dto.BusinessDoctorListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.doctor.param.BusinessDoctorCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.doctor.param.BusinessDoctorDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.doctor.param.BusinessDoctorListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.doctor.param.BusinessDoctorUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessDoctorCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/doctor/fallback")
public class BusinessDoctorCloudServiceFallback implements BusinessDoctorCloudService {

    @Override
    public BusinessDoctorListCloudDto list(BusinessDoctorListCloudParam param) {
        return new BusinessDoctorListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessDoctorCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessDoctorUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessDoctorDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
